
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
// import Home from '../view/Home/index.vue'

const router = new Router({
  mode: 'hash',
  routes: [
    {
      path:'/',
      component: ()=>import('../view/Home'),
      meta: {depIndex:1}
    },
    {
      path:'/list',
      component: ()=>import('../view/List'),
      meta: {depIndex:2}
    },
    {
      path:'/listdetail/:id',
      component: ()=>import('../view/ListDetail'),
      meta: {depIndex:3}
    },
    {
      path:'/slot',
      component: ()=>import('../view/SlotContainer'),
      meta: {depIndex:2}
    },
  ]
})

export default router